import Vue from 'vue'
import Vuex from 'vuex'

Vue.use(Vuex)

export default new Vuex.Store({
  state: {
    // title:'本项目其实没必要使用...',
    title:'',
    type:'',
    nums:'',
    correct:'',
    percentage:'',
    list:'',
    loading:false
  },
  mutations: {
    setTitle(state,params){
      state.title = params
    },
    setType(state,params){
      state.type = params
    },
    setNums(state,params){
      state.nums = params
    },
    setCorrect(state,params){
      state.correct = params
    },
    Percentage(state,params){
      state.percentage = params
    },
    getList(state,params){
      state.percentage = params
    },
    getLoading(state,params){
      state.loading = params
    }
    
  },
  actions: {
  },
  modules: {
  }
})
